package sk.marek.barak.client.util;

import sk.marek.barak.data.ItemDoesntExits;
import sk.marek.barak.data.NewAnnoucement;
import sk.marek.barak.data.OneDay;
import java.util.Map;

public class Facade {
	private static OneDay curentDay = OneDayUtil.getCurentDay();
	
	public static void saveNewAnnoucement(NewAnnoucement newAnnoucement){
		curentDay.saveNewAnnoucement(newAnnoucement);
	}
	public static Map<String,NewAnnoucement> getAllNewAnnoucements(){
		return curentDay.getAllNewAnnoucement();
	}
	public static NewAnnoucement getNewAnnoucement(String annoucementNumber) throws ItemDoesntExits{
		return curentDay.getNewAnnoucement(annoucementNumber);
	}
	
	
}
